// package com.alibaba.druid.sql.ast;

// import com.alibaba.druid.sql.visitor.SQLASTVisitor;
#pragma once

#include "SQLObjectImpl.h"

class SQLName;
class SQLOver;

class SQLWindow : public SQLObjectImpl
{
private:
  SQLName_ptr name;
  SQLOver_ptr over;
  
public:
  SQLWindow(SQLName_ptr name, SQLOver_ptr over);
  SHAREDOBJECT(SQLWindow);

  SQLName_ptr getName();

  void setName(SQLName_ptr x);

  SQLOver_ptr getOver();

  void setOver(SQLOver_ptr x);

protected:
  void accept0(SQLASTVisitor_ptr  v);
};
